<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/pages/common/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<script type="text/javascript" src="${ctx}/pages/templete/js/validate/cloud.js"></script>

<style>
.formTable{text-align:left;}

</style>

<form id="form" action="${ctx}/cloud/doCharge.do" method="POST" target="_blank" >
	<input type="hidden" name="verficationCode" value="${config.verficationCode }"/>
	<table width="100%" class="formTable">
		<tr>
			<td width="35%" align=right>版本号:</td>
			<td>
				<select id="version" name="version">
					<option value="2.0" selected >2.0</option>
					<option value="2.1" selected >2.1</option>
				</select>
			</td>
		</tr>
		<tr>
			<td align=right>交易代码:</td>
			<td>
				<input type="text" id="tranCode" name="tranCode" value="0601" size="50"/>
			</td>
		</tr>
		
		<tr>
			<td align=right>企业ID:</td>
			<td>
				<input type="text" id="merchantID" name="merchantID" value="0000003850" size="50"/>
			</td>
		</tr>
		<tr>
			<td align=right>订单号:</td>
			<td>
				<input type="text" id="merOrderNum" name="merOrderNum" value="${config.merOrderNum }" size="50" autoComplete="off"/>
			</td>
		</tr>
		<!-- <tr>
			<td align=right>充值账户:</td>
			<td>
				<input type="text" id="acctId" name="acctId" value="0000000002100000628" size="50"/>
			</td>
		</tr> -->
		  <tr>
			<td align=right>协议号:</td>
			<td>
				<input type="text" id="agreeId" name="agreeId" value="00000000000000000" size="50"/>
			</td>
		</tr>
		<tr>
			<td align=right>充值方式:</td>
			<td>
				<input type="text" id="tranType" name="tranType" value="01" size="50"/>
			</td>
			
		</tr>
		<tr>
			<td width="30%" align=right></td>
			<td align=left width="45%">&nbsp;&nbsp;01：网银支付02：线下汇款
				<td width="25%" align=left></td>
		</tr>
		<tr>
			<td align=right>充值金额:</td>
			<td>
				<input type="text" id="tranAmt" name="tranAmt" value="10.00" size="50"/>
			</td>
		</tr>
		<tr>
			<td align=right>企业前台URL:</td>
			<td>
				<input type="text" id="frontMerUrl" name="frontMerUrl" value="${fn:replace(pageContext.request.requestURL,'WEB-INF/pages/layout_webtest.jsp','cloudNotifyShowController/notifyShow.do')}" style="width:450px;"/>
			</td>
		</tr>
		<tr>
			<td align=right>企业后台URL:</td>
			<td>
				<input type="text" id="backgroundMerUrl" name="backgroundMerUrl" value="${config.backgroundMerUrl }" style="width:450px;"/>
			</td>
		</tr>
		
		<tr>
			<td align=right>客户端ip:</td>
			<td>
				<input type="text" id="transLaunchIp" name="transLaunchIp" value="10.10.6.100" style="width:450px;"/>
			</td>
		</tr>
		<tr><td align=right>编码方式:  </td><td><input type="text"  id="charset" name="charset" value="2" size="50"/></td></tr>
		<tr>
			<td width="30%" align=right></td>
			<td align=left width="45%">&nbsp;&nbsp;1 GBK 2 UTF-8
				<td width="25%" align=left></td>
		</tr>
		<!-- <tr><td align=right>语言种类:  </td><td><input type="text" id=" language" name="language" value="1" size="50"/></td></tr>
		<tr>
			<td width="30%" align=right></td>
			<td align=left width="45%">&nbsp;&nbsp;1:ZH,2:EN
				<td width="25%" align=left></td>
		</tr> -->
		<tr><td align=right>签名类型:  </td><td><input type="text" id="signType" name="signType" value="1" size="50"/></td></tr>
		<tr>
			<td width="30%" align=right></td>
			<td align=left width="45%">&nbsp;&nbsp;1.md5  2.sha 3.api
				<td width="25%" align=left></td>
		</tr>
		<tr><td align=right>请求时间:  </td><td><input type="text" id="reqTime" name="reqTime" value="${config.gopayServerTime }" size="50"/></td></tr>
		<tr>
			<td colspan=3 width="100%">
				<center>
					<input type="submit" name="submit" id="submit" value="开始测试" />
				</center>
			</td>
		</tr>
		
		
	</table>
</form>